package com.gateway.plugin.api.context;


import com.gateway.common.enums.RpcTypeEnum;

/**
 * @program: ahcloud-gateway
 * @description:
 * @author: YuKai Fan
 * @create: 2024/5/20 09:37
 **/
public interface GatewayContextDecorator {

    /**
     * 装饰者模式，构建网关上下文
     *
     * @param gatewayContext
     * @return
     */
    GatewayContext decorator(GatewayContext gatewayContext);

    /**
     * Rpc Type
     * @return
     */
    default RpcTypeEnum rpcType() {
        return RpcTypeEnum.SPRING_CLOUD;
    }
}
